AdminAccess

annotation class AdminAccess(val perms: Array<String>, val fallback: Int = -1)

Paired with WithCustomPerms. Defines the permissions needed for "admin" access to the config.

Admin access will mark that a player can handle access violations (potential cheating of a config update) and other server-level issues, and will be notified in-game if such an error occurs while they are online.

This annotation is outside the chain of precedence of the others, it is solely responsible for determining admin access.

If WithCustomPerms is used in the config class, this should be paired with it; otherwise the system will consider any server admin or owner (level 3+ perms) as an admin.

Author

fzzyhmstrs

Since

0.4.0

Parameters

perms

Array - permission groups allowed to access this setting. Groups need to be compatible with LuckPerms or similar.

fallback

Int - Default -1 = no custom fallback behavior; it will check for permission level of 3+. If provided, uses vanilla logic: 1 = moderator, 2 = game master, 3 = admin, 4 = owner

Properties

Link copied to clipboard
Link copied to clipboard